Repository navigation
feat(github-action): filter GitHub releases by package - #370
Merged
goulvenclech merged 1 commit intoNov 29, 2026
Merged
Conversation
🧭 Changeset detectedMerging this PR will release the following updates: sampo-github-action (Cargo) — minor version bumpMinor changes
|
This was referenced Oct 26, 2026
goulvenclech
requested changes
Oct 30, 2026
goulvenclech
left a comment
Member
There was a problem hiding this comment.
Thanks @arthurfiorette for the proposition! But I'm not convinced by gathering the other packages' notes. It relies on a positional convention, adds a function to core for presentation only, and conflicts with #371, which can skip the tags it builds on. Would the package filter alone cover what devlanes needs?
goulvenclech
force-pushed
the
feat/main-package-github-release
branch
from
November 29, 2026 10:41
b0ad488 to
262382b
Compare
Member
|
Thanks @arthurfiorette ! I took the liberty of trimming it down to the package filter, rebased on |
goulvenclech
approved these changes
Nov 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With
create-github-release: true, the action creates a GitHub release for every tagsampo publishcreates. That suits a monorepo of independent packages, but not one that ships a single product built from many internal packages.devlanes is a Cargo workspace of 62 crates with per-crate changelogs in a
linkedgroup. Its 0.4.0 release bumped 52 of them, so with releases on, one merge of the release PR would create 52 GitHub releases. Its users want one release for devlanes, and the changes recorded on internal crates still belong in its notes. Writing every changeset against the main package would get them there, but then the crate changelogs would no longer say what changed in each crate.Part of three PRs from the same setup: #371 stops tagging unpublished packages, and #369 lists each changeset once in the release PR and bot comment. None depends on the others: #371 decides which tags exist, this PR which of them get a GitHub release.
What has changed?
create-github-releasealso accepts a comma-separated list of package names, parsed and matched likeopen-discussionthrough a sharedPackageFilter.true,false,1and0behave as before.## Other packagessection with every other tag from the same publish: a### name versionheading and its changelog section for packages with real entries, then the collapsed list from the release PR body (feat(core/github-action): add changelog.automatic_entries option #341) for packages that were only bumped. Other listed packages get only their own notes, so nothing appears twice.open-discussionstill filters among the releases that are created.sampo-coregetsis_automatic_changelog_section, so the action can tell bump-only sections apart in bothautomatic_entriesmodes without copying their strings.With
create-github-release: devlanes, a release would look like this (entries made up for illustration):How is it tested?
true,1,false,0, empty, stray commas, whitespace), which tags get releases and where the other notes go, discussions among created releases, the exact combined body with a package with entries, a bump-only package in eachautomatic_entriesmode and one without a changelog, truncation, and heading demotion skipping code blocks.sampo-core:is_automatic_changelog_sectionon automatic and mixed sections.fmt and both clippy variants pass, as do the unit tests. On Windows, two integration tests (
test_default_command_is_autoandtest_auto_mode_without_changesets_attempts_publish) also fail onmain, and the rest need the binary copied without.exe. I couldn't create a real release, so the API calls with a combined body are untested.How is it documented?
create-github-releaseis described in the action README, with an example, and inaction.yml. Changeset included,minorfor sampo-core and sampo-github-action.